package com.eddie.interator;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @author Eddie
 * @date 2022/08/03 22:26
 **/
public class Client {
    public static void main(String[] args) {
        List<College> collegeList = new ArrayList<>();
        ComputerCollege computerCollege = new ComputerCollege();
        InfoCollege infoCollege = new InfoCollege();

        collegeList.add(computerCollege);
        collegeList.add(infoCollege);

        OutPutImpl outPut = new OutPutImpl(collegeList);
        outPut.printCollege();
    }
}
